package jdx_00_utils;

import java.util.concurrent.TimeUnit;

public class JdxUtils {
    //秒
    public static void sleepSeconds(long s)   {
        try {
            TimeUnit.SECONDS.sleep(s);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    //微秒
    public static void sleepMicroseconds(long ms){
        try {
            TimeUnit.MICROSECONDS.sleep(ms);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    //毫秒
    public static void sleep(long milliSeconds){
        try {
            Thread.sleep(milliSeconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
